﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wicresoft.UnifyShow.Business;
using Oracle.DataAccess.Client;

namespace Wicresoft.UnifyShow.BusinessImpl
{
    public class Role : Basic, IRole
    {
        public int CreateRole(Wicresoft.UnifyShow.Business.RoleModel e)
        {
            QueryParameter[] attParam = new QueryParameter[] {
                        new QueryParameter(){ OracleDbColumnName="RoleName", OracleDbColumnType=OracleDbType.NVarchar2,
                        OracleDbColumnSize=256,OracleDbColumnValue=e.RoleName,PredicateType=PredicateType.insert},
                        new QueryParameter(){ OracleDbColumnName="Description", OracleDbColumnType=OracleDbType.NVarchar2,
                        OracleDbColumnSize=256,OracleDbColumnValue=e.Description,PredicateType=PredicateType.insert},
                    };
            return ModelHelper<RoleModel>.CreateModel_By_QueryParams(attParam, oda);
        }
    }
}
